#include "abstractemotion.h"


namespace Emotion {

AbstractEmotion::AbstractEmotion(const QString &name,
                                 const QString &meaning,
                                 const QString &code,
                                 const QString &fullPath,
                                 QObject *parent) :
    QObject(parent),
    m_name(name),
    m_meaning(meaning),
    m_code(code),
    m_fullPath(fullPath)
{
}


void AbstractEmotion::setName(const QString &name)
{
    m_name = name;
}


const QString &AbstractEmotion::name() const
{
    return m_name;
}


void AbstractEmotion::setMeaning(const QString &meaning)
{
    m_meaning = meaning;
}


const QString &AbstractEmotion::meaning() const
{
    return m_meaning;
}


void AbstractEmotion::setCode(const QString &code)
{
    m_code = code;
}


const QString &AbstractEmotion::code() const
{
    return m_code;
}


void AbstractEmotion::setFullPath(const QString &fullPath)
{
    m_fullPath = fullPath;
}


const QString &AbstractEmotion::fullPath() const
{
    return m_fullPath;
}


void AbstractEmotion::setSize(const QSize &size)
{
    m_size = size;
}


void AbstractEmotion::setSize(int width, int height)
{
    m_size = QSize(width, height);
}


const QSize &AbstractEmotion::size() const
{
    return m_size;
}

} // namespace Emotion
